[BasicInformation] fetch data via a delegate#43569
[BasicInformation] fetch data via a delegate#43569andy31415 wants to merge 14 commits intoproject-chip:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the Basic Information cluster to fetch data via a delegate instead of directly accessing DeviceInstanceInfoProvider and ConfigurationManager. This is a good architectural improvement that decouples the cluster logic from the platform-specific data providers. The changes are well-implemented across the cluster, its tests, and example applications. I have a few suggestions for improvement, mainly regarding a test mock's behavior and some dead code removal.
src/app/clusters/basic-information/DeviceLayerBasicInformationDelegate.cpp
Outdated
Show resolved
Hide resolved
src/app/clusters/basic-information/DeviceLayerBasicInformationDelegate.h
Outdated
Show resolved
Hide resolved
|
PR #43569: Size comparison from 3d6c065 to d8fb3aa Full report (5 builds for cc32xx, realtek, stm32)
|
|
PR #43569: Size comparison from 3d6c065 to ab56f8b Full report (5 builds for cc32xx, realtek, stm32)
|
|
PR #43569: Size comparison from 3d6c065 to 43c85d5 Full report (12 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, realtek, stm32)
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #43569 +/- ##
==========================================
- Coverage 54.07% 54.00% -0.07%
==========================================
Files 1548 1551 +3
Lines 106701 106740 +39
Branches 13309 13321 +12
==========================================
- Hits 57699 57650 -49
- Misses 49002 49090 +88 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
PR #43569: Size comparison from 3d6c065 to b1d462d Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
|
PR #43569: Size comparison from 3d6c065 to 4f50ce2 Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Summary
This is similar to #43511 however it fetches data via a delegate instead of using templates.
This is to assess flash overhead of delegates.
Testing
CI will validate. I adjusted unit tests.